import { get } from "@/utils/request";
const COURSE_TYPE_BASE_URL = "/api/v1/course/category";

export interface CourseCategory {
  id: number;
  name: string;
  parentId: number;
  updateTime: string;
  createTime: string;
}

export interface CourseCategoryListVO extends CourseCategory {
  children: CourseCategory[];
}


export const getList = (): Promise<CourseCategoryListVO[]> => {
  return get<any>(`${COURSE_TYPE_BASE_URL}/list`);
};



